package com.boot.modules.core.controller;

import com.boot.common.anno.AnnoLog;
import com.boot.common.constant.GlobalVar;
import com.boot.common.result.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
@RequestMapping("/system")
public class SystemController {

    @AnnoLog(value = "获取系统时间")
    @GetMapping("/time")
    public Result<?> getSystemTime() {
        return Result.success(GlobalVar.systemTime);
    }

}
